package cb.wzby;

import java.util.HashSet;
import java.util.List;
import java.util.Set;

/**
 * @author wzby
 * @Date: 2022/7/30 11:22
 */
public class Set3 {
    public static void main(String[] args) {
        Set<Set<String>> s = new HashSet<>();
        s.add(new HashSet<>(List.of("java","java")));
        s.add(new HashSet<>(List.of("java","java")));
        s.add(new HashSet<>(List.of("php","php")));
        s.add(new HashSet<>(List.of("php","php")));
        s.add(new HashSet<>(List.of("java","php")));
        s.add(new HashSet<>(List.of("javac","css")));
        System.out.println(s.size());
        System.out.println(s);
        System.out.println(s.contains(new HashSet<>(List.of("java","php"))));
        //contains判断是否包含“java”“php”
        System.out.println(s.contains("c++"));
        for (Set<String> s1 :s){
            System.out.println(s1);
        }//遍历读取
    }
}
